<?php
namespace app\api\model;

use think\Db;
use think\Model;

class RecomModel extends Model
{
     function  recomlist(){
         $result=Db::name('recom')->select();
         return $result;
     }
     function recomdetail($rid){
         $result= Db::name('recom')->where('recommentid',$rid)->find();
         return  $result;

     }
}